<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8"/>
	<meta name="baidu-site-verification" content="JdMif0g2tL" />
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
	<title>angular</title>
</head>
<body ng-app="myApp">
<style type="text/css" media="screen">
	*{
		margin: 0;
		padding: 0;
	}
	span{
		color: red;
		font-size:14px; 
	}
</style>

<div ng-controller="mainCtrl">
	{{news}}
</div>

<script type="text/javascript">
	document.getElementsByTagName('html')[0].style.fontSize=window.screen.width/10+'px';
</script>
<script src="../js/angular.min.js" charset="utf-8"></script>
<script type="text/javascript">
	var app =angular.module('myApp', []);
	var date=new Date('2017-5-9 20:00:00').getTime();

	app.controller('mainCtrl', ['$scope','$http', function($scope,$http){
		$http.get('data.json')
		.success(function(res){
			console.log(res);
			$scope.news=res.data;
		})
		.success(function(res){
			console.log(res,111)
		})
	}])
</script>
</body>
</html>
<!--应该是14.11，时间-2017-05-08->